﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="basedata_index.aspx.cs" Inherits="uswinweb.admin.basedata_index" %>
<%@ Register TagPrefix="win" TagName="basedatalist" Src="../datacontrol/basedataList.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="../css/comm.css" rel="stylesheet" type="text/css" />
<link href="../css/lightview.css" type="text/css" rel="stylesheet" />
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="../js/lightview.js" type="text/javascript"></script>
<script src="../js/effects.js" type="text/javascript"></script>
<script src="../js/table.js" type="text/javascript"></script>
<script src="../js/jquery_common.js" type="text/javascript"></script>
</head>
<body>
<input type="button" id="reclick" name="reclick" onclick="reclcik()" style="display: none"  />
<form id="form1" runat="server">
<div class="repcot" id="repcot">
<p class="adnrt">
基础数据编辑——<%=btInfo.tname %>
</p>
	<p class="adnrt">
		<input name="search_txt" id="search_txt" class="soon" type="text" style="width:200px;" />
		<input name="" class="soso" type="button" value="搜索" onclick="search()" />
	</p>
	<ul class="adnr2 mar_top">
    <li><input type="checkbox" name="chkall" value="checkbox" id ="chkall"  onclick="CheckAll(this.form,'ids');"/></li>
		<li><a href="basedata_add.aspx?bid=<%=bcode %>" rel="iframe" title=" :: :: width:700,height:500" class="lightview">新 增</a></li>
			<li><a href="#" onclick="del('all')">批量删除</a></li>
	</ul>
	<div class="adnr3">
    <div id="showdata">
        <win:basedatalist runat="server" ID="basedatalist1" />
    </div>
	</div>
    </div>
        <input type="hidden" id="bid" name="bid" value="<%=bcode %>" />
</form>
</body>
<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery("#nav").find("li").mouseover(function () {
            jQuery(this).find(".c").show();
        });
        jQuery("#nav").find("li").mouseout(function () {
            jQuery(this).find(".c").hide();
        });
    });

    function reclcik() {
        loading();
        var bid = '<%=bcode %>';
        AjaxHelper.Updater('basedatalist.ascx', 'showdata', 'action=reclick&bid=' + bid + '');
    }
    function search() {
        var val = document.getElementById('search_txt').value;
        loading();
        var bid = '<%=bcode %>';
        AjaxHelper.Updater('basedatalist.ascx', 'showdata', 'action=search&bid=' + bid + '&parms=' + val);
    }
</script>
</html>

